package day04;

public class BreakDemo {
    public static void main(String[] args) {
        for(int a = 1;a<=9;a++){
            if(a==6){
                break;
            }
            System.out.println(a+"*9="+a*9);
/*执行过程
    a=1   1*9=9
    a=2   2*9=18
    a=3   3*9=27
    a=4   4*9=36
    a=5   5*9=45
    a=6
 */
        }

        for(int b = 1;b<10;b++){
            System.out.println(b+"*9="+b*9);
        }
    }
}
